package grape.workflow.rest.process.form;

import grape.common.rest.form.BaseForm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * Created by yangwei
 * Created at 2020/6/28 19:00
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel("动态表单流程启动表单")
public class DynamicFormStartWorkflowWithFormForm extends BaseForm {

    @NotEmpty(message = "流程定义id不能为空")
    @ApiModelProperty("流程定义id")
    private String processDefinitionId;

    @NotNull(message = "表单参数不能为空")
    @ApiModelProperty("表单参数")
    private Map<String, String> variables;

}
